package com.linkage.jz.bankruptcy.bean;

import android.text.TextUtils;

/**
 * 描述：广告信息</br>
 */
public class ManagerUserInfo {

    String id = "";

    public int getCurType() {
        return curType;
    }

    public void setCurType(int curType) {
        this.curType = curType;
    }

    int curType = 1;

    public int getGroupnum() {
        return groupnum;
    }

    public void setGroupnum(int groupnum) {
        this.groupnum = groupnum;
    }

    int groupnum = 0;

    String name = "";

    public ManagerBaseUserInfo.UserAuth getUserAuth() {
        return userAuth;
    }

    public void setUserAuth(ManagerBaseUserInfo.UserAuth userAuth) {
        this.userAuth = userAuth;
    }

    public ManagerBaseUserInfo.UserAuth userAuth;
    String bankruptcyProjectId = "";
    String sysUserId = "";
    String sysGroupId = "";
    String subsidiaryOrgan = "";
    boolean groupLeader = false;

    public boolean isHidePhone() {
        return hidePhone;
    }

    public void setHidePhone(boolean hidePhone) {
        this.hidePhone = hidePhone;
    }

    boolean hidePhone = false;
    ValueParms projectRole = null;
    String projectColumnPermission = "";
    String moneyPercent = "";

    String personnelPercent = "";
    String opManagementMembers = "";
    String opOtherMembers = "";

    AddressInfo address;
    AddressInfo addressInfo;
    String sysAddressId;
    String subsidiaryOragan;

    public String getSubsidiaryOragan() {
        return subsidiaryOragan;
    }

    public void setSubsidiaryOragan(String subsidiaryOragan) {
        this.subsidiaryOragan = subsidiaryOragan;
    }

    public String getSysAddressId() {
        return sysAddressId;
    }

    public void setSysAddressId(String sysAddressId) {
        this.sysAddressId = sysAddressId;
    }

    public AddressInfo getAddress() {
        if (address != null)
            return address;
        else if (addressInfo != null)
            return addressInfo;
        else
            return null;
    }

    public void setAddress(AddressInfo address) {
        this.address = address;
    }

    public String getContributiveMoney() {
        return contributiveMoney;
    }

    public void setContributiveMoney(String contributiveMoney) {
        this.contributiveMoney = contributiveMoney;
    }

    String contributiveMoney = "";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBankruptcyProjectId() {
        return bankruptcyProjectId;
    }

    public void setBankruptcyProjectId(String bankruptcyProjectId) {
        this.bankruptcyProjectId = bankruptcyProjectId;
    }

    public String getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(String sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getSysGroupId() {
        return sysGroupId;
    }

    public void setSysGroupId(String sysGroupId) {
        this.sysGroupId = sysGroupId;
    }

    public String getSubsidiaryOrgan() {
        return subsidiaryOrgan;
    }

    public void setSubsidiaryOrgan(String subsidiaryOrgan) {
        this.subsidiaryOrgan = subsidiaryOrgan;
    }

    public boolean getGroupLeader() {
        return groupLeader;
    }

    public void setGroupLeader(boolean groupLeader) {
        this.groupLeader = groupLeader;
    }

    public ValueParms getProjectRole() {
        return projectRole;
    }

    public void setProjectRole(ValueParms projectRole) {
        this.projectRole = projectRole;
    }

    public String getProjectColumnPermission() {
        return projectColumnPermission;
    }

    public void setProjectColumnPermission(String projectColumnPermission) {
        this.projectColumnPermission = projectColumnPermission;
    }

    public String getMoneyPercent() {
        return moneyPercent;
    }

    public void setMoneyPercent(String moneyPercent) {
        this.moneyPercent = moneyPercent;
    }

    public String getPersonnelPercent() {
        return personnelPercent;
    }

    public void setPersonnelPercent(String personnelPercent) {
        this.personnelPercent = personnelPercent;
    }

    public String getOpManagementMembers() {
        return opManagementMembers;
    }

    public void setOpManagementMembers(String opManagementMembers) {
        this.opManagementMembers = opManagementMembers;
    }

    public String getOpOtherMembers() {
        return opOtherMembers;
    }

    public void setOpOtherMembers(String opOtherMembers) {
        this.opOtherMembers = opOtherMembers;
    }

    public boolean getContactCreditor() {
        return contactCreditor;
    }

    public void setContactCreditor(boolean contactCreditor) {
        this.contactCreditor = contactCreditor;
    }

    public String getGroupSentMessage() {
        return groupSentMessage;
    }

    public void setGroupSentMessage(String groupSentMessage) {
        this.groupSentMessage = groupSentMessage;
    }

    public String getSendSMS() {
        return sendSMS;
    }

    public void setSendSMS(String sendSMS) {
        this.sendSMS = sendSMS;
    }

    public String getOtherContactNumber() {
        if(!TextUtils.isEmpty(otherContactNumber))
            return otherContactNumber;
        else if(!TextUtils.isEmpty(otherPhone))
            return otherPhone;
        else
            return "";
    }

    public void setOtherContactNumber(String otherContactNumber) {
        this.otherContactNumber = otherContactNumber;
    }

    public UserInfo getUser() {
        return user;
    }

    public void setUser(UserInfo user) {
        this.user = user;
    }

    public String getName() {
        if (!TextUtils.isEmpty(name))
            return name;
        else if (user != null && !TextUtils.isEmpty(user.username))
            return user.username;
        else if (user != null && !TextUtils.isEmpty(user.loginname))
            return user.loginname;
        else
            return "";
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    boolean contactCreditor = false;
    String groupSentMessage = "";
    String sendSMS = "";
    String otherContactNumber = "";
    String otherPhone = "";
    UserInfo user;

    public String getOtherPhone() {
        return otherPhone;
    }

    public void setOtherPhone(String otherPhone) {
        this.otherPhone = otherPhone;
    }

    public GroupInfo getGroup() {
        return group;
    }

    public void setGroup(GroupInfo group) {
        this.group = group;
    }

    GroupInfo group;
    String delFlag;
    AuthBeanXX auth;

    public AuthBeanXX getAuth() {
        return auth;
    }

    public void setAuth(AuthBeanXX auth) {
        this.auth = auth;
    }

    private boolean addManagementMembers;

    public boolean isAddManagementMembers() {
        return addManagementMembers;
    }

    public void setAddManagementMembers(boolean addManagementMembers) {
        this.addManagementMembers = addManagementMembers;
    }

    public static class AuthBeanXX {
        /**
         * deleteManagementMembers : true
         * setMemberPermissions : true
         */
        private boolean deleteManagementMembers;
        private boolean setMemberPermissions;

        public boolean isDesignatedAdministrator() {
            return designatedAdministrator;
        }

        public void setDesignatedAdministrator(boolean designatedAdministrator) {
            this.designatedAdministrator = designatedAdministrator;
        }

        public boolean isDesignatedManager() {
            return designatedManager;
        }

        public void setDesignatedManager(boolean designatedManager) {
            this.designatedManager = designatedManager;
        }

        private boolean designatedAdministrator;
        private boolean designatedManager;

        public boolean isDeleteManagementMembers() {
            return deleteManagementMembers;
        }

        public void setDeleteManagementMembers(boolean deleteManagementMembers) {
            this.deleteManagementMembers = deleteManagementMembers;
        }

        public boolean isSetMemberPermissions() {
            return setMemberPermissions;
        }

        public void setSetMemberPermissions(boolean setMemberPermissions) {
            this.setMemberPermissions = setMemberPermissions;
        }
    }

    public static class ValueParms {
        /**
         * value : 3
         * text : 组员
         */

        private int value;
        private String text;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

}
